package com.web.service;

import com.web.entity.NoteInfo;
import com.baomidou.mybatisplus.service.IService;
import com.web.param.DelNoteInfo;
import com.web.param.InsertNoteInfoDto;
import com.web.param.UpdateInfoDto;
import com.web.util.LoginException;
import com.web.util.ServiceException;

import java.util.List;

/**
 * <p>
 * 笔记表 服务类
 * </p>
 *
 * @author hgjxyz
 * @since 2020-11-18
 */
public interface INoteInfoService extends IService<NoteInfo> {

    void insert(InsertNoteInfoDto dto)throws ServiceException, LoginException;

    void update(UpdateInfoDto dto)throws ServiceException, LoginException;

    void delete(DelNoteInfo dto)throws ServiceException, LoginException;

    List<NoteInfo> getByList(String tokenStr, String typeId) throws LoginException;

}
